package com.example.dee.service;

import com.example.dee.pojo.CarData;
import com.example.dee.pojo.CarRecord;
import com.example.dee.pojo.Record;
import com.example.dee.pojo.vo.ResponseJSON;

import java.util.Date;
import java.util.List;

/**
 * @ClassName SysService
 * @创建人 李劲松
 * @创建时间 2022/7/20 10:26
 * @描述 A机构管理员对数据库的操作接口
 */
public interface SysService {


    CarData selectCarData(String id);

    void updateCarDataState(String id , ResponseJSON responseJSON, String date);

    int addCarData(String id, String enTime, String enTollStationName, String exTime, String exTollStationName, String vehicleId, int vehicleType, Double fee);

    int deleteCarData(String id);

    String selectSerialData();

    int selectSerial();

    void updateSerial(int serial, String serialData);

    String selectCommand();

    int updateCommand(String command);

    int addCarRecord(CarData carData, String func, int user);

    int addRecord(CarData carData, String receiveDesc, int user);

    int updateRecord(String info,String id);

    List<CarData> selectCarDataAll();

    List<CarData> selectCarDataByState(String state,int begin,int showNum);

    List<CarData> selectCarDataByUp(int begin,int showNum);

    List<Record> selectRecord(String data,int begin,int showNum);

    List<CarRecord> selectCarRecord(String data,int begin,int showNum);

    int updateCarData(String id, Double fee);

    int getCountByTable(String t_record);
}
